html = '''
<div id="container">
<ul class="list">
<li class="item-0">first item</li>
<li class="item-1"><a href="link2.html">second item</a></li>
<li class="item-0 active"><a href="link3.html"><span class="bold">third item</span></a></li>
<li class="item-1 active"><a href="link4.html"><fourth item</a></li>
<li class="item-0"><a href="link5.html">fifth item</a></li>
</ul>
</div>
'''
from pyquery import PyQuery as pq
doc = pq(html)  #
print(doc('#container .list li'))       # 传入一个CSS选择器#container .list li 先选取id为container的节点
print(type(doc('#container .list li')))     # 然后再选取内部class为list的节点内部的所有li节点

